package com.easylinkin.linkappapi.crane.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 作业区域表关联机械表
 *
 * @author xy
 * @since 2025-06-17
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("rail_crane_operation_area_ref_mechanical")
public class CraneOperationAreaRefMechanical implements Serializable{
    private static final long serialVersionUID=1L;

    /**
     * 主键id
     */
    @TableId(value = "id_", type = IdType.AUTO)
    private Long id;

    /**
     * 作业区域id
     */
    @TableField(value = "operation_area_id_")
    private Long operationAreaId;

    /**
     * 绑定机械
     */
    @TableField(value = "mechanical_id_")
    private String mechanicalId;

    /**
     * 删除状态 0：未删除 1：已删除
     */
    @TableField(value = "delete_state")
    @TableLogic(value = "0", delval = "1")
    private Integer deleteState;

    /**
     * 创建人id
     */
    @TableField(value = "create_id_")
    private Long createId;

    /**
     * 创建日期
     */
    @TableField(value = "create_time_")
    private Date createTime;

    /**
     * 修改人id
     */
    @TableField(value = "modify_id_")
    private Long modifyId;

    /**
     * 修改时间
     */
    @TableField(value = "modify_time_")
    private Date modifyTime;

    /**
     * 备注
     */
    @TableField(value = "remark_")
    private String remark;

}
